/**
 * @file errors.js.
 * @author liaoxuezhi@baidu.com
 */
/* eslint fecs-indent: [0, "space", 2, 2] */

export class ValidationError extends Error {
  type = 'ValidationError';

  constructor(message, detail) {
    super(message);
    this.detail = detail;
  }
}

export class CSRFError extends Error {
  type = 'CSRFError';

  constructor(message) {
    super(message);
  }
}

export class SessionExpiredError extends Error {
  type = 'SessionExpiredError';

  constructor(message) {
    super(message);
  }
}